package cn.com.taurus.impl;

import cn.com.taurus.entity.Fund;
import cn.com.taurus.mapper.FundMapper;
import cn.com.taurus.service.FundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @author zhy
 * @createTime 2021-6-3 20:49:18
 * @remark 基金Impl层
 * @version 1.0
 */
@Service
public class FundImpl implements FundService {
    @Autowired
    FundMapper fundMapper;

    @Override
    public int addFund(List<Fund> fundData) {
        return fundMapper.addFund(fundData);
    }

    @Override
    public List<Fund> selectAllFund() {
        return fundMapper.selectAllFund();
    }

    @Override
    public Fund selectFundByFid(String fId) {
        return fundMapper.selectFundByFid(fId);
    }

    @Override
    public int updateFund(Fund fund) {
        return fundMapper.updateFund(fund);
    }

    @Override
    public int insertFund(Fund fund){
        return fundMapper.insertFund(fund);
    }

    @Override
    public String selectFundType(String fId) {
        return fundMapper.selectFundType(fId);
    }

    @Override
    public List<Fund> conditionSelectFund(String fId, String fName, String dwjz, String ifBuy){
        return fundMapper.conditionSelectFund(fId,fName,dwjz,ifBuy);
    }
}
